import request from '@/utils/request'

// 查询耗时选项列表
export function listCook_time_options(query) {
  return request({
    url: '/recipes/cook_time_options/list',
    method: 'get',
    params: query
  })
}

// 查询耗时选项详细
export function getCook_time_options(id) {
  return request({
    url: '/recipes/cook_time_options/' + id,
    method: 'get'
  })
}

// 新增耗时选项
export function addCook_time_options(data) {
  return request({
    url: '/recipes/cook_time_options',
    method: 'post',
    data: data
  })
}

// 修改耗时选项
export function updateCook_time_options(data) {
  return request({
    url: '/recipes/cook_time_options',
    method: 'put',
    data: data
  })
}

// 删除耗时选项
export function delCook_time_options(id) {
  return request({
    url: '/recipes/cook_time_options/' + id,
    method: 'delete'
  })
}
